<template>
	<view class="pay_success">
		<view class="contant">
			<image src="https://ykp-new.oss-cn-hangzhou.aliyuncs.com/newPicter/pay_success.png" mode=""></image>
			<text>支付成功</text>
			<!-- <text v-else>报名成功</text> -->
			<view class="tips">
				您好！提交的订单已报名成功
			</view>
			<view class="btn">
				<view class="look" @tap="toregister">
					查看报名
				</view>
				<view class="return" @tap="tohomepage">
					返回首页
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				price:''
			}
		},
		onLoad(options) {
			this.price = options.price
		},
		methods: {
			tohomepage () {
				uni.reLaunch({
				    url: '/pages/index/index'
				});
			},
			toregister () {
				uni.reLaunch({
				    url: '/pageC/mine/register?state='+'0'
				});
			}
		}
	}
</script>
<style>
	page {
		
		background-color: #FFFFFF;
	}
</style>
<style lang="less" scoped>
	.contant {
		text-align: center;
		overflow: hidden;
		image {
			display: block;
			width: 148upx;
			height: 156upx;
			margin: auto;
			margin-top: 120upx;
		}
		text {
			margin-top: 20upx;
			font-size: 32upx;
			color: #333333;
			font-size: 32upx;
		}
		.tips {
			margin-top: 20upx;
			font-size: 28upx;
			color: #333333;
		}
		.btn {
			display: flex;
			justify-content: center;
			align-items: center;
			margin-top:80upx;
			.look {
				width: 266upx;
				height: 72upx;
				border: 2upx solid #e1e1e1;
				box-sizing: border-box;
				border-radius: 35upx;
				font-size: 32upx;
				color: #333333;
				text-align: center;
				line-height: 68upx;
				margin-right: 30upx;
			}
			.return {
				width: 266upx;
				height: 72upx;
				border-radius: 35upx;
				background-color: #8838d2;
				font-size: 32upx;
				color: #FFFFFF;
				text-align: center;
				line-height: 68upx;
			}
		}
	}
</style>
